/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Graphic;

import java.awt.*;
import java.io.Serializable;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;


public class DialogBoxExit implements Serializable{
    /**
	 *
	 */
	private static final long serialVersionUID = 1L;


    JFrame frame = new JFrame();



    public void message(String text){
        Object message = new JLabel("<html><font color=red><font size=5>" +text, JLabel.CENTER);
        String title = "Notify";
        int retVal = JOptionPane.showOptionDialog(frame,message,title, JOptionPane.CLOSED_OPTION, JOptionPane.PLAIN_MESSAGE, null,null,null);
        //showResult("default", retVal);
        System.exit(0);
    }


}